FROM ubuntu:24.04

ENV DEBIAN_FRONTEND=noninteractive


# Temp workaround for invalid apt repository
RUN apt-get update && \
    apt-get install -q -y --no-install-recommends \
    software-properties-common && \
    apt-get clean && \
    rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
RUN add-apt-repository \
    -r "deb-src http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"

# 基础与开发工具
RUN apt-get update && \
    apt-get install -q -y --no-install-recommends \
      vim iproute2 iputils-ping ca-certificates curl \
      build-essential cmake gdb ninja-build \
      clangd clang-format \
      python3 pipx && \
    rm -rf /var/lib/apt/lists/*

# Conan 2.x（不缓存）并生成默认 profile
RUN pipx ensurepath && pipx install conan



WORKDIR /workspace
